#include "led.h"

void led_init(void)
{
	RCC->APB2ENR |= RCC_APB2ENR_IOPCEN;
	
	GPIOC->CRL &= ~GPIO_CRL_CNF1;
	GPIOC->CRL |= GPIO_CRL_MODE1;
	
	GPIOC->CRL &= ~GPIO_CRL_CNF2;
	GPIOC->CRL |= GPIO_CRL_MODE2;
	
	GPIOC->CRL &= ~GPIO_CRL_CNF3;
	GPIOC->CRL |= GPIO_CRL_MODE3;
	
	 GPIOC->ODR &= ~GPIO_ODR_ODR1;
	GPIOC->ODR &= ~GPIO_ODR_ODR2;
	GPIOC->ODR &= ~GPIO_ODR_ODR3;
	
}